<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 400px;
      max-height: 500px;
      padding: 10px;
      font-family: Arial, sans-serif;
    }
    .image-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 10px;
    }
    .image-item {
      position: relative;
      width: 100%;
    }
    .image-item img {
      width: 100%;
      height: 100px;
      object-fit: cover;
      border-radius: 4px;
      cursor: pointer;
    }
    .download-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      border: none;
      border-radius: 4px;
      padding: 4px 8px;
      cursor: pointer;
      font-size: 12px;
    }
    .download-btn:hover {
      background: rgba(0, 0, 0, 0.9);
    }
    h2 {
      margin-top: 0;
      color: #333;
    }
  </style>
</head>
<body>
  <h2>页面图片收集</h2>
  <div id="imageCount"></div>
  <div class="image-grid" id="imageContainer"></div>
  <script src="popup.js"></script>
</body>
</html> 